import request from '@/utils/request'

// 查询工序计划列表
export function listBizProcessPlan (query) {
  return request({
    url: '/biz/bizProcessPlan/list',
    method: 'get',
    params: query
  })
}

// 查询工序计划详细
export function getBizProcessPlan (id) {
  return request({
    url: '/biz/bizProcessPlan/' + id,
    method: 'get'
  })
}

// 新增工序计划
export function addBizProcessPlan (data) {
  return request({
    url: '/biz/bizProcessPlan',
    method: 'post',
    data: data
  })
}

// 修改工序计划
export function updateBizProcessPlan (data) {
  return request({
    url: '/biz/bizProcessPlan',
    method: 'put',
    data: data
  })
}

// 删除工序计划
export function delBizProcessPlan (id) {
  return request({
    url: '/biz/bizProcessPlan/' + id,
    method: 'delete'
  })
}


// 导出工序计划
export function exportBizProcessPlan (query) {
  return request({
    url: '/biz/bizProcessPlan/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizProcessPlan/getInitData/' + dictTypes,
    method: 'get'
  })
}
